home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.cyberramp.net!news
- From: sinan@cyberramp.net (John Noland)
- Newsgroups: comp.lang.c
- Subject: Re: Invalid Indirection???
- Date: 15 Mar 1996 01:31:31 GMT
- Organization: Prose Software
- Message-ID: <4iah9k$r02@newshost.cyberramp.net>
- References: <4i7cck$t67@infa.central.susx.ac.uk>
- NNTP-Posting-Host: ramp2-29.cyberramp.net
- X-Newsreader: WinVN 0.99.5
-
- In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
- >
- > tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
- >
- >/* This is where the compiler stops and says there's an invalid
- >indirection for the "tmp" assignment */
-
- To multiply, you need whitespace. Check the lexical conventions for the
- evaluation of tokens for your compiler to be certain, but it looks like
- you've confused him.
- Also, your open/closed parentheses don't match in this statement.
-
- Your statement should like this (underscores indicate spaces):
-
- tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
-
- -John
-
-